import { connect } from 'react-redux'
import LoginForm from '../components/LoginForm'
import {loginUser} from '../actions'

const mapStateToProps = (state, ownProps) => {
  return {
    prop: state.prop
  }
}

const mapDispatchToProps = (dispatch, ownProps) => {
  return {
    loginUser: (name, passwd) => {
      dispatch(loginUser(name, passwd))
    }
  }
}

export default connect(mapStateToProps, mapDispatchToProps)(LoginForm)